*###########################################################*
* Introducing the CMPS 2020 MENA/Muslim Sample              *
* Dana and Lajevardi                                        *
* Journal: PS: Political Science & Politics                 *
* Stata Replication Code                                    *
* Tested on Stata 16.0                                      *
*###########################################################*

clear all
clear matrix
set more off, perm
cd "/Users/nazita/Dropbox/CMPS 2020 Karam& Nazita/PS Spotlight/" /*set your own working directory*/
use "cmps2020_muslim_final_replication.dta", replace 


***************
*** Table 1 ***
***************
ta muslim mena


***************
*** Table 2 ***
***************
ta raisedmuslimhousehold mena 
ta raisedmuslimhousehold muslim  

***************
*** Table 3 ***
***************

*** Muslim non-MENA
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if muslim ==1

*** Muslim non-MENA
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if mena ==0 & muslim ==1

*** Muslim MENA
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if mena ==1 & muslim ==1

*** Muslim by Heritage
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if raisedmuslimhousehold ==1 & muslim ==0

*** Non-Muslim MENA
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if mena ==1 & muslim ==0

*** Non-Muslim Black
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if S2_Racer3 ==1 & muslim ==0

*** Non-Muslim Asian
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if S2_Racer4 ==1 & muslim ==0

*** Non-Muslim Latino
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if S2_Racer2 ==1 & muslim ==0

*** Non-Muslim White 
sum usborn lgbtq voted2020 trump2020support disc_racial disc_skincolor disc_gender disc_sexuality disc_immstatus disc_religion  disc_accent [aweight =os_weight] if S2_Racer1 ==1 & muslim ==0


